:wtf: compiler message
-
BC30390 'Utilities.Public Function EndOfYear(year As Integer) As Date' is not accessible in this context because it is 'Public'.
What happened
This method is called from a different assembly.
While theFunction
in question is declared asPublic
, theModule
its in was declared without modifier, which is interpreted asFriend
(visible inside the assembly it's in).
-
@aliceif This is why you should use C#: its compiler messages make sense
-
@aliceif That's up there with the errors you can get in Java when you start really messing around with classloaders; things like (paraphrased) “can't call method; expected class
a.b.c.Foo
but found classa.b.c.Foo
”. The first time you see those things, you totally go but the key is that classes in the JVM aren't just distinguished by name, despite what the errors say…