Can't omit default object name in imports and types
There should be only one way to denote a type (A.Default.B can't be denoted as A.B)
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ class A {
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(x : A.Season) : String {
|
||||
fun foo(x : A.Default.Season) : String {
|
||||
return when (x) {
|
||||
A.Season.WINTER -> "winter"
|
||||
A.Season.SPRING -> "spring"
|
||||
|
||||
Reference in New Issue
Block a user