BBx-Kitchen / bbj-language-server

BBj Language Server
MIT License
6 stars 6 forks source link

Assume that a string literal is a java.lang.String #27

Closed dhuebner closed 1 year ago

dhuebner commented 1 year ago
foo$ = "TEST"
foo$.charAt(1)  REM <== no linking error here

In case of direct string literal assignment assume that the left side is of type java.lang.String

dhuebner commented 1 year ago

Fixed in master.

StephanWald commented 1 year ago

This code snippet is invalid. $ Variables are Strings but do not expose the java String methods

READY

foo$ = "TEST" foo$.charAt(1) !ERROR=20 (Syntax Error: foo$.charAt(1))