File tree 2 files changed +10
-1
lines changed
compiler/src/dotty/tools/dotc/typer
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
3270
3270
if isExtension then return found
3271
3271
else
3272
3272
checkImplicitConversionUseOK(found)
3273
- return typedSelect(tree, pt, found)
3273
+ return withoutMode( Mode . ImplicitsEnabled )( typedSelect(tree, pt, found) )
3274
3274
case failure : SearchFailure =>
3275
3275
if failure.isAmbiguous then
3276
3276
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