3 ms·
Static typing information isn't retained at runtime. e.g. ListInterface list = new ConcreteList(); let runtimeType = GetTypeOf(list); // will be `Conc
by recursive 3y ago
Static typing information isn't retained at runtime. e.g.
ListInterface list = new ConcreteList();
let runtimeType = GetTypeOf(list); // will be `ConcreteList`, not `ListInterface`
This is an imaginary java-like language, but I'm not aware of a statically typed language that gives you the static type resolutions at run-time, outside of cases like implicit generic resolutions and things like that.