Skip to content

Instantly share code, notes, and snippets.

@kubukoz
Created November 5, 2021 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kubukoz/1dd9f748c1932225d89264ee87c8e6f7 to your computer and use it in GitHub Desktop.
Save kubukoz/1dd9f748c1932225d89264ee87c8e6f7 to your computer and use it in GitHub Desktop.
// 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