Skip to content

improve error report use SourceLoc #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
illusory0x0 opened this issue Jan 16, 2025 · 1 comment
Closed

improve error report use SourceLoc #39

illusory0x0 opened this issue Jan 16, 2025 · 1 comment

Comments

@illusory0x0
Copy link
Contributor

illusory0x0 commented Jan 16, 2025

fn print_loc(loc~ : SourceLoc = _) -> Unit{
  let loc = loc.to_string().escape()
  println(loc)
}

test "forall" {
  println("\n\n")
  println("loc: ")
  print_loc()
  println("\n\n")

}

This function prints the location where this function was called.

We can refer to the implementation of inspect!

@illusory0x0
Copy link
Contributor Author

Continue in #1599

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant