File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -306,8 +306,8 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
306
306
case _ =>
307
307
false
308
308
}
309
- typeIsElidable ||
310
- tp.symbol.is(JavaStatic ) ||
309
+ typeIsElidable ||
310
+ tp.symbol.is(JavaStatic ) ||
311
311
tp.symbol.hasAnnotation(defn.ScalaStaticAnnot )
312
312
}
313
313
@@ -343,6 +343,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
343
343
def singleton (tp : Type )(implicit ctx : Context ): Tree = tp match {
344
344
case tp : TermRef => ref(tp)
345
345
case tp : ThisType => This (tp.cls)
346
+ case tp : SkolemType => singleton(tp.narrow)
346
347
case SuperType (qual, _) => singleton(qual)
347
348
case ConstantType (value) => Literal (value)
348
349
}
Original file line number Diff line number Diff line change
1
+ class Lift {
2
+ def apply (f : F0 ) // error
3
+ class F0
4
+ object F0 { implicit def f2f0 (String ): F0 = ??? } // error
5
+ (new Lift )(" " )
6
+ }
You can’t perform that action at this time.
0 commit comments