Files
codeql/java/ql/test/kotlin/library-tests/string-charat/Test.java
Chris Smowton 9593ceeda5 Kotlin: Special-case String.charAt naming
In the Kotlin universe this is called `get` so that Kotlin programmers can use the `[]` operator on `String`s.
2022-07-21 09:17:08 +01:00

6 lines
74 B
Java

public class Test {
public char f(String s) { return s.charAt(0); }
}