Objo.
Feedback Forum Docs Objo Studio
Feedback

Bug #1814

'As New' with DateTime is rejected in Var declarations

Status
Fixed
Fixed in
v26.10.3
Area
compiler
Source discussion
https://forum.objo.dev/d/1354-some-feedback-from-building-chartview-web-support-and-a-few-language-notes
Last updated
2026-10-20

Upvotes

0 upvotes

Uses your Objo forum account.

Public summary

Var d As New DateTime(2026, 1, 2) is rejected with the compile error "Expected class name after 'New'.", although the equivalent explicit form Var d As DateTime = New DateTime(2026, 1, 2) compiles and runs. As New should accept the same built-in types as the expression form of New.

Objo.

Build apps visually, deploy anywhere.

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