File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
compiler/src/dotty/tools/dotc/ast Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
435
435
436
436
/** new C(args), calling the primary constructor of C */
437
437
def New (tp : Type , args : List [Tree ])(implicit ctx : Context ): Apply =
438
- New (tp, tp.typeSymbol.primaryConstructor.asTerm, args)
438
+ New (tp, tp.dealias. typeSymbol.primaryConstructor.asTerm, args)
439
439
440
440
/** new C(args), calling given constructor `constr` of C */
441
441
def New (tp : Type , constr : TermSymbol , args : List [Tree ])(implicit ctx : Context ): Apply = {
Original file line number Diff line number Diff line change
1
+ trait i0 {
2
+ trait i1 extends Throwable { false }
3
+ }
4
+ // trait i0 {
5
+ // trait I1 extends Throwable { val I1 = () }
6
+ // }
You can’t perform that action at this time.
0 commit comments