New Issue: [Bug]: Extern blocks insert symbols into scope

29642, "jabraham17", "[Bug]: Extern blocks insert symbols into scope", "2026-11-03T20:05:54Z"

The following successfully compiles

extern { }

var x: c_int = 0;
writeln(x);

This should get an error, that c_int is not defined. A correct program should use CTypes. The presence of an extern block seems to auto-import CTypes into scope. I believe this is an issue at large with CTypes, the following program also compiles when it should not.

extern { }

var x: CTypes.c_int = 0;
var y: c_double = 0.0;
writeln(x, y);

If you remove the extern { }, the code correctly fails (missing CTypes, missing c_double)