File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -3270,7 +3270,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
32703270 if isExtension then return found
32713271 else
32723272 checkImplicitConversionUseOK(found)
3273- return typedSelect(tree, pt, found)
3273+ return withoutMode( Mode . ImplicitsEnabled )( typedSelect(tree, pt, found) )
32743274 case failure : SearchFailure =>
32753275 if failure.isAmbiguous then
32763276 return
Original file line number Diff line number Diff line change 1+ opaque type Inlined [T ] = T
2+
3+ object Inlined :
4+
5+ given fromValueWide [Wide ]: Conversion [Wide , Inlined [Wide ]] = ???
6+
7+ // TODO: This used to make the compiler run into an infinite loop.
8+ // Now it fails instead but shouldn't, see discussion in https://github.com/lampepfl/dotty/issues/13900#issuecomment-1075580792
9+ def myMax : Int = 1 max 2 // error
You can’t perform that action at this time.
0 commit comments