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

64 lines
1.3 KiB
Plaintext
Vendored

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