Importing root scope without members.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Unresolved reference: /
|
||||
|
||||
package h
|
||||
|
||||
import util.div
|
||||
|
||||
trait H
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Unresolved reference: /
|
||||
|
||||
package h
|
||||
|
||||
trait H
|
||||
|
||||
fun f(h: H) {
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
package util
|
||||
|
||||
fun H.div(i: Int) = 3
|
||||
fun h.H.div(i: Int) = 3
|
||||
@@ -1,6 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
package h
|
||||
|
||||
import util.foo
|
||||
|
||||
trait H
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
package h
|
||||
|
||||
trait H
|
||||
|
||||
fun f(h: H) {
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
package util
|
||||
|
||||
fun H.foo(other: H) = ""
|
||||
fun h.H.foo(other: h.H) = ""
|
||||
@@ -1,5 +1,7 @@
|
||||
// "Import" "true"
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> jet.String.minus(str: jet.String): jet.String <i>defined in</i> root package</li><li><b>internal</b> <b>fun</b> jet.String.minus(i: java.lang.Integer): jet.String <i>defined in</i> root package</li></ul></html>
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> jet.String.minus(str: jet.String): jet.String <i>defined in</i> h</li><li><b>internal</b> <b>fun</b> jet.String.minus(i: java.lang.Integer): jet.String <i>defined in</i> h</li></ul></html>
|
||||
|
||||
package h
|
||||
|
||||
import util.minus
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
// "Import" "true"
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> jet.String.minus(str: jet.String): jet.String <i>defined in</i> root package</li><li><b>internal</b> <b>fun</b> jet.String.minus(i: java.lang.Integer): jet.String <i>defined in</i> root package</li></ul></html>
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> jet.String.minus(str: jet.String): jet.String <i>defined in</i> h</li><li><b>internal</b> <b>fun</b> jet.String.minus(i: java.lang.Integer): jet.String <i>defined in</i> h</li></ul></html>
|
||||
|
||||
package h
|
||||
|
||||
trait H
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
package util
|
||||
|
||||
fun H?.minus(s: String) = ""
|
||||
fun h.H?.minus(s: String) = ""
|
||||
@@ -1,6 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>public</b> <b>fun</b> jet.String?.plus(other: jet.Any?): jet.String <i>defined in</i> jet</li></ul></html>
|
||||
|
||||
package h
|
||||
|
||||
import util.plus
|
||||
|
||||
trait H
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>public</b> <b>fun</b> jet.String?.plus(other: jet.Any?): jet.String <i>defined in</i> jet</li></ul></html>
|
||||
|
||||
package h
|
||||
|
||||
trait H
|
||||
|
||||
fun f(h: H?) {
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
package util
|
||||
|
||||
fun H?.plus(s: String) = ""
|
||||
fun h.H?.plus(s: String) = ""
|
||||
@@ -1,6 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Unresolved reference: ++
|
||||
|
||||
package h
|
||||
|
||||
import util.inc
|
||||
|
||||
trait H
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Unresolved reference: ++
|
||||
|
||||
package h
|
||||
|
||||
trait H
|
||||
|
||||
fun f(h: H?) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package util
|
||||
|
||||
fun H.inc(): H {
|
||||
fun h.H.inc(): h.H {
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Unresolved reference: *=
|
||||
|
||||
package h
|
||||
|
||||
import util.timesAssign
|
||||
|
||||
trait H
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Unresolved reference: *=
|
||||
|
||||
package h
|
||||
|
||||
trait H
|
||||
|
||||
fun f(h: H) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package util
|
||||
|
||||
fun H.div(i: Int) = 3
|
||||
fun H.timesAssign(i: Int) {}
|
||||
fun h.H.div(i: Int) = 3
|
||||
fun h.H.timesAssign(i: Int) {}
|
||||
@@ -1,6 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Unresolved reference: -
|
||||
|
||||
package h
|
||||
|
||||
import util.minus
|
||||
|
||||
trait H
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// "Import" "true"
|
||||
// ERROR: Unresolved reference: -
|
||||
|
||||
package h
|
||||
|
||||
trait H
|
||||
|
||||
fun f(h: H?) {
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
package util
|
||||
|
||||
fun H?.minus() = ""
|
||||
fun h.H?.minus() = ""
|
||||
@@ -1,5 +1,7 @@
|
||||
// "Import" "true"
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> A.plus(): jet.Int <i>defined in</i> root package</li><li><b>public</b> <b>fun</b> jet.String?.plus(other: jet.Any?): jet.String <i>defined in</i> jet</li></ul></html>
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> h.A.plus(): jet.Int <i>defined in</i> h</li><li><b>public</b> <b>fun</b> jet.String?.plus(other: jet.Any?): jet.String <i>defined in</i> jet</li></ul></html>
|
||||
|
||||
package h
|
||||
|
||||
import util.plus
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
// "Import" "true"
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> A.plus(): jet.Int <i>defined in</i> root package</li><li><b>public</b> <b>fun</b> jet.String?.plus(other: jet.Any?): jet.String <i>defined in</i> jet</li></ul></html>
|
||||
// ERROR: <html>Unresolved reference. <br/> None of the following candidates is applicable because of receiver type mismatch: <ul><li><b>internal</b> <b>fun</b> h.A.plus(): jet.Int <i>defined in</i> h</li><li><b>public</b> <b>fun</b> jet.String?.plus(other: jet.Any?): jet.String <i>defined in</i> jet</li></ul></html>
|
||||
|
||||
package h
|
||||
|
||||
trait H
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
package util
|
||||
|
||||
fun H.plus() = ""
|
||||
fun h.H.plus() = ""
|
||||
Reference in New Issue
Block a user