File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
src/reflect/scala/reflect/internal Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ trait Mirrors extends api.Mirrors {
247
247
// is very beneficial for a handful of bootstrap symbols to have
248
248
// first class identities
249
249
sealed trait WellKnownSymbol extends Symbol {
250
- this initFlags TopLevelCreationFlags
250
+ this initFlags ( TopLevelCreationFlags | STATIC )
251
251
}
252
252
// Features common to RootClass and RootPackage, the roots of all
253
253
// type and term symbols respectively.
@@ -276,7 +276,6 @@ trait Mirrors extends api.Mirrors {
276
276
277
277
override def isRoot = true
278
278
override def isEffectiveRoot = true
279
- override def isStatic = true
280
279
override def isNestedClass = false
281
280
}
282
281
// The empty package, which holds all top level types without given packages.
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ trait Trees extends api.Trees { self: SymbolTable =>
160
160
new ThisSubstituter (clazz, to) transform this
161
161
162
162
def hasSymbolWhich (f : Symbol => Boolean ) =
163
- hasSymbol && symbol != null && f(symbol)
163
+ (symbol ne null ) && ( symbol ne NoSymbol ) && f(symbol)
164
164
165
165
def isErroneous = (tpe ne null ) && tpe.isErroneous
166
166
def isTyped = (tpe ne null ) && ! tpe.isErroneous
Original file line number Diff line number Diff line change
1
+ class Test {
2
+ class Foo1 {
3
+ def must (x : scala.xml.Elem ) = ()
4
+ }
5
+
6
+ class Foo2 {
7
+ def must (x : Int ) = ()
8
+ }
9
+ implicit def toFoo1 (s : scala.xml.Elem ) = new Foo1 ()
10
+ implicit def toFoo2 (s : scala.xml.Elem ) = new Foo2 ()
11
+
12
+ def is : Unit = { (<a >{" a" }</a >).must(<a >{" b" }</a >) }
13
+ }
You can’t perform that action at this time.
0 commit comments