dotlin-org/dotlin

Indexing a string with .get() does not convert properly

eggnstone opened this issue · 1 comments

val s = "Test"
val s0 = s.get(0)

leads to

final String s = "Test";
final String s1 = s.get(0);

with error

error: The method 'get' isn't defined for the type 'String'. (undefined_method at [untitled6] lib\dotlin\dotlin_tools.dt.g.dart:8)

Yeah is related to #69, because the operator keyword is missing it also didn't generate a named get extension equivalent. Will close this and track in #69 👍