File tree 2 files changed +12
-2
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -3038,7 +3038,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
3038
3038
body
3039
3039
3040
3040
/** Implement givens that were declared with a `deferred` rhs.
3041
- * The a given value matching the declared type is searched in a
3041
+ * The given value matching the declared type is searched in a
3042
3042
* context directly enclosing the current class, in which all given
3043
3043
* parameters of the current class are also defined.
3044
3044
*/
@@ -3067,7 +3067,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
3067
3067
)(using searchCtx)
3068
3068
3069
3069
val impl = dcl.copy(cls,
3070
- flags = dcl.flags &~ (HasDefault | Deferred ) | Final | Override ,
3070
+ flags = dcl.flags &~ (HasDefault | Deferred ) | Override ,
3071
3071
info = target,
3072
3072
coord = rhs.span).entered.asTerm
3073
3073
Original file line number Diff line number Diff line change
1
+ //> using options -source:future -language:experimental.modularity
2
+
3
+ class MySortedSet [T : Ord ] extends SortedSet [T ]
4
+
5
+ trait Ord [T ]
6
+
7
+ trait Sorted [T ]:
8
+ given Ord [T ] as ord = compiletime.deferred
9
+
10
+ class SortedSet [T : Ord ] extends Sorted [T ]
You can’t perform that action at this time.
0 commit comments