use v6; say $!.why-does-this-print-Nil-instead-of-reporting-an-error; # my $var = $!; # say $var.no-such-method-error-good; class Foo { has Int $.bar = 4; method baz() { return 2 * $!.bar; # this typo is not catched at compile time } } say Foo.new.baz();