:wtf: compiler message
BC30390 'Utilities.Public Function EndOfYear(year As Integer) As Date' is not accessible in this context because it is 'Public'.
This method is called from a different assembly.
Functionin question is declared as
Moduleits in was declared without modifier, which is interpreted as
Friend(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.Foobut found class
a.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…