File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
compiler/src/dotty/tools/dotc/ast
tests/pos-special/fatal-warnings Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ object desugar {
158
158
vparamss = (setterParam :: Nil ) :: Nil ,
159
159
tpt = TypeTree (defn.UnitType ),
160
160
rhs = setterRhs
161
- ).withMods((mods | Accessor ) &~ CaseAccessor )
161
+ ).withMods((mods | Accessor ) &~ ( CaseAccessor | Implicit | Given ) )
162
162
Thicket (vdef, setter)
163
163
}
164
164
else vdef
Original file line number Diff line number Diff line change
1
+ class TC { type T }
2
+
3
+ class C given (TC { type T = Int })
4
+
5
+ def f1 given (x : TC ) = ???
6
+ def f2 given (@ unchecked x : TC ) = ???
7
+ inline def f3 given (inline x : TC ) = ???
8
+
9
+ class C1 given (x : TC )
10
+ class C2 given (@ unchecked x : TC )
11
+ class C3 given (val x : TC )
12
+ class C4 given (var x : TC )
13
+ class C5 given (private val x : TC )
14
+ class C6 given (private [this ] val x : TC )
15
+
You can’t perform that action at this time.
0 commit comments