diff options
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index 030c71b0bf..7c09df68d3 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -2162,7 +2162,7 @@ trait Typers { self: Analyzer => } } - if (fun.symbol == List_apply && args.isEmpty) { + if (fun.symbol == List_apply && args.isEmpty && !onlyPresentation) { atPos(tree.pos) { gen.mkNil setType restpe } } else { constfold(treeCopy.Apply(tree, fun, args1).setType(ifPatternSkipFormals(restpe))) |