Show code that caused unreachable code #2207

`$echo` would suppress warning about unreachable code. #2205
This commit is contained in:
Christoffer Lerno
2025-06-15 00:37:28 +02:00
parent f79f6d4001
commit dda2d2ecbe
7 changed files with 69 additions and 48 deletions

View File

@@ -0,0 +1,12 @@
import std;
macro something() {
unreachable("Hi there");
}
fn void main() {
something();
$echo "Hello";
io::printn("Hello, World"); // #warning: This code will never execute
}