Objo.
Feedback Forum Docs Objo Studio
Feedback

Bug #2044

Report calls to non-callable locals before execution

Status
Fixed
Fixed in
v26.11.4
Area
compiler
Source discussion
-
Last updated
2026-11-16

Upvotes

0 upvotes

Uses your Objo forum account.

Public summary

A local variable can hide a method with the same name, yet a call to that local can pass type checking and fail only at runtime. For example, a String local named line hides a class method named Line, but Line(1) is accepted and then fails with "Can only call functions and classes."

Calling a value that is statically known to be non-callable should produce a compile-time error. Legal shadowing should remain supported, and an explicit receiver such as Self.Line(1) should still call the method.

Objo.

Build apps visually, deploy anywhere.

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