Skip to content

Commit 5eea8b3

Browse files
committed
Added fix for toDouble error emitting SafeValue error
1 parent 029cce8 commit 5eea8b3

File tree

1 file changed

+1
-1
lines changed
  • compiler/src/dotty/tools/dotc/transform/init

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/init/Util.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ object Util:
5959
case TypeApply(fn, targs) =>
6060
unapply(fn)
6161

62-
case ref: RefTree if ref.tpe.widenSingleton.isInstanceOf[MethodicType] =>
62+
case ref: RefTree if ref.symbol.is(Flags.Method) =>
6363
Some((ref, Nil))
6464

6565
case _ => None

0 commit comments

Comments
 (0)