Files
kotlin-fork/plugins/uast-java/testData/render/SpecialExpressions.txt
T
2016-04-08 15:39:58 +03:00

69 lines
1.5 KiB
Plaintext
Vendored

default class _Dummy_ {
default inner class SpecialExpressions {
default fun test(): boolean {
assert 5 > 3 : EmptyExpression
assert 5 > 3 : "Message"
synchronized this : {
System.out.println("A")
}
var a: int = 5
var b: int = 7
var c: int
while (a > 0) {
if (a === 3) {
break
}
if (a % 5 === 0) {
continue
}
a--
}
this.test()
super.hashCode()
var x: String
switch (a)
{
case 1:
{
x = "1"
break
}
case 3:
x = "3"
case 4:
x = "4"
else:
x = ""
}
if (System.getProperty("abc", "").equals("1")) {
throw <noref>("Err")
}
try {
Thread.sleep(1000)
}
catch (e) {
}
finally {
a = 3
}
{
a = 5
}
return true
}
}
}