Objo.
Feedback Forum Docs Objo Studio
Feedback

Bug #111

`TypeOf(ClassName)` returns `Nothing` instead of `TypeInfo` for the class

Status
Fixed
Fixed in
v26.5.4
Source discussion
-
Last updated
2026-05-17

Public summary

Summary

TypeOf(Person) currently compiles, but returns Nothing instead of a TypeInfo for Person. Calling .CreateInstance() on that result then crashes with a runtime error.

Reproducing

Class Person
End Class

Var ti As TypeInfo = TypeOf(Person)
Var p2 As Object = ti.CreateInstance()

Current behaviour The code compiles, but ti is Nothing, so calling ti.CreateInstance() fails at runtime with:

Runtime error: Only instances have methods.

Expected behaviour

Either:

TypeOf(Person) should return the TypeInfo for the Person class, allowing ti.CreateInstance() to work, or the compiler should reject TypeOf(Person) with a clear diagnostic and direct users to TypeInfo.ForName("Person").

Objo.

Build apps visually, deploy anywhere.

Feedback is a public read-only status mirror for Objo Studio.