Debian Codegraph @

src/test/06-Errors/error-nspc-no-crash.ck

raw
1 // test context unloading
2 // during 1.5.1.1 development, errors could cause a crash
3 // depending where the error was, due to deleting rather thna
4 // releasing the context's nspc
5
6 // this should result in an error (without crashing lol)
7 x;
8
9 // the crash would be related to context-local values like 'bar'
10 // cleaning up and releasing references to its owner namespace
11 fun int foo( int bar )
12 {
13 return bar;
14 }