Define any class Class1
and Class2
. Then Set assigne a variable of type Class1
to one of Class2
.
That compiles without any error.
At runtime, it failes, obviously.
You can also have cls As Class1
and do cls(0)
without any default member on Class1
.
It compiles, but fails at runtime.