Skip to content
This repository
Browse code

SI-7100 Fixed infinite recursion in duplicators

  • Loading branch information...
commit a53e1508660f849e86e34808e5d4230b078f7a3e 1 parent 33608ff
Vlad Ureche authored February 07, 2013
2  src/compiler/scala/tools/nsc/typechecker/Duplicators.scala
@@ -388,7 +388,7 @@ abstract class Duplicators extends Analyzer {
388 388
               cases
389 389
           }
390 390
 
391  
-          super.typedPos(tree.pos, mode, pt)(Match(scrut, cases1))
  391
+          super.typed(atPos(tree.pos)(Match(scrut, cases1)), mode, pt)
392 392
 
393 393
         case EmptyTree =>
394 394
           // no need to do anything, in particular, don't set the type to null, EmptyTree.tpe_= asserts
6  test/files/pos/SI-7100.scala
... ...
@@ -0,0 +1,6 @@
  1
+class Buffer {
  2
+  def f[@specialized(Int) T](): T = 0 match {
  3
+    case 0 => 0.asInstanceOf[T]
  4
+    case 1 => 0.asInstanceOf[T]
  5
+  }
  6
+}

3 notes on commit a53e150

scala-jenkins
Collaborator

Job pr-checkin-per-commit failed for a53e150 (results):


Took 11 s.
sad kitty
to rebuild, comment "PLS REBUILD/pr-checkin-per-commit@a53e150"on PR #2112

scala-jenkins
Collaborator

Job pr-rangepos-per-commit failed for a53e150 (results):


Took 9 s.
sad kitty
to rebuild, comment "PLS REBUILD/pr-rangepos-per-commit@a53e150"on PR #2112

Vlad Ureche
Collaborator

@scala-jenkins: Bad kitteh, bad kitteh, no forgive! Commenting ugly stuff on people's commits won't get you any hamburgerz.

Please sign in to comment.
Something went wrong with that request. Please try again.