Test refactoring
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class User(val login : Boolean) {}
|
||||
|
||||
fun currentAccess(user: User?): Int {
|
||||
return when {
|
||||
user == null -> 0
|
||||
// We should get smartcast here
|
||||
<!DEBUG_INFO_SMARTCAST!>user<!>.login -> 1
|
||||
else -> -1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user