Created
November 5, 2021 22:42
-
-
Save kubukoz/1dd9f748c1932225d89264ee87c8e6f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using scala 3.1.0 | |
object macroz { | |
inline def foo(arg: Any): Unit = { | |
scala.compiletime.error("what is " + scala.compiletime.codeOf(arg)) | |
} | |
foo(42) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment