From d28879042951015f0ef2d5263b7df264a13a8055 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Wed, 28 May 2014 21:46:53 +0200 Subject: SI-8596 Fix rangepos crasher with defaults, poly methods Regressed in SI-7915 / 3009a525b5 We should be deriving the position of the synthetic `Select` from `basefun1`, rather than `basefun`. In the new, enclosed test, the difference amounts to: new Container().typeParamAndDefaultArg[Any]() `------------ basefun1 --------------' `----------------- basefun ---------------' For monomorphic methods, these are one and the same, which is why `presentation/t7915` was working. I've extended that test to a polymorphic method to check that hyperlink resolution works. --- test/files/pos/t8596.flags | 1 + 1 file changed, 1 insertion(+) create mode 100644 test/files/pos/t8596.flags (limited to 'test/files/pos/t8596.flags') diff --git a/test/files/pos/t8596.flags b/test/files/pos/t8596.flags new file mode 100644 index 0000000000..281f0a10cd --- /dev/null +++ b/test/files/pos/t8596.flags @@ -0,0 +1 @@ +-Yrangepos -- cgit v1.2.3