diff --git a/tests/pos/i21189-alt.scala b/tests/pos/i21189-alt.scala index 08213cd627d4..10a55ec25185 100644 --- a/tests/pos/i21189-alt.scala +++ b/tests/pos/i21189-alt.scala @@ -7,6 +7,6 @@ trait Ord[T] trait Sorted[T] extends ParentOfSorted[T] trait ParentOfSorted[T]: - given Ord[T] as ord = compiletime.deferred + given ord: Ord[T] = compiletime.deferred class SortedSet[T : Ord] extends Sorted[T] diff --git a/tests/pos/i21189.scala b/tests/pos/i21189.scala index 88a0bf601476..ea27f88402de 100644 --- a/tests/pos/i21189.scala +++ b/tests/pos/i21189.scala @@ -5,6 +5,6 @@ class MySortedSet[T : Ord] extends SortedSet[T] trait Ord[T] trait Sorted[T]: - given Ord[T] as ord = compiletime.deferred + given orrd: Ord[T] = compiletime.deferred class SortedSet[T : Ord] extends Sorted[T]