Skip to content

Commit 01fe465

Browse files
committed
Kotlin: Make MiniStdLib more closely match the real stdlib
1 parent f1f2055 commit 01fe465

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

java/ql/test/kotlin/library-tests/ministdlib/MiniStdLib.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ public open class Any {
1414
open operator fun equals(other: Any?): Boolean { return this.equals(other) }
1515
}
1616

17-
public open class String {
17+
public class String {
1818
operator fun plus(other: Any?): String { return this.plus(other) }
1919
}
2020

21-
public open class Boolean {
21+
public class Boolean {
2222
operator fun not(): Boolean { return this.not() }
2323
}
2424

25-
public open class Int {
25+
public class Int {
2626
operator fun plus(other: Int): Int { return this.plus(other) }
2727
operator fun times(other: Int): Int { return this.times(other) }
2828
infix fun xor(other: Int): Int { return this.xor(other) }
2929
}
3030

31-
public open class Unit {
31+
public object Unit {
3232
}
3333

0 commit comments

Comments
 (0)