File tree Expand file tree Collapse file tree 8 files changed +142
-0
lines changed
scala-2.12/org/typelevel/scalaccompat/annotation
scala-2.13/org/typelevel/scalaccompat/annotation
scala-3/org/typelevel/scalaccompat/annotation
scala/org/typelevel/scalaccompat/annotation/internal
scala-2.12/org/typelevel/scalaccompat/annotation
scala-2.13/org/typelevel/scalaccompat/annotation
scala-3/org/typelevel/scalaccompat/annotation
scala/org/typelevel/scalaccompat/annotation Expand file tree Collapse file tree 8 files changed +142
-0
lines changed Original file line number Diff line number Diff line change @@ -28,4 +28,10 @@ package object annotation {
28
28
type nowarn3 = nowarnIgnored
29
29
30
30
type targetName3 = targetNameIgnored
31
+
32
+ type uncheckedVariance = scala.annotation.unchecked.uncheckedVariance
33
+ type uncheckedVariance2 = uncheckedVariance
34
+ type uncheckedVariance212 = uncheckedVariance
35
+ type uncheckedVariance213 = uncheckedVarianceIgnored
36
+ type uncheckedVariance3 = uncheckedVarianceIgnored
31
37
}
Original file line number Diff line number Diff line change @@ -29,5 +29,11 @@ package object annotation {
29
29
30
30
type targetName3 = targetNameIgnored
31
31
32
+ type uncheckedVariance = scala.annotation.unchecked.uncheckedVariance
33
+ type uncheckedVariance2 = uncheckedVariance
34
+ type uncheckedVariance212 = uncheckedVarianceIgnored
35
+ type uncheckedVariance213 = uncheckedVariance
36
+ type uncheckedVariance3 = uncheckedVarianceIgnored
37
+
32
38
type unused = scala.annotation.unused
33
39
}
Original file line number Diff line number Diff line change @@ -29,5 +29,11 @@ package object annotation {
29
29
30
30
type targetName3 = scala.annotation.targetName
31
31
32
+ type uncheckedVariance = scala.annotation.unchecked.uncheckedVariance
33
+ type uncheckedVariance2 = uncheckedVarianceIgnored
34
+ type uncheckedVariance212 = uncheckedVarianceIgnored
35
+ type uncheckedVariance213 = uncheckedVarianceIgnored
36
+ type uncheckedVariance3 = uncheckedVariance
37
+
32
38
type unused = scala.annotation.unused
33
39
}
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2022 Typelevel
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ package org .typelevel .scalaccompat .annotation
18
+ package internal
19
+
20
+ private [annotation] class uncheckedVarianceIgnored extends scala.annotation.Annotation
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2022 Typelevel
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ package org .typelevel .scalaccompat .annotation
18
+
19
+ object CustomUncheckedVarianceHelper {
20
+ trait Invariant [A ]
21
+ trait Invariant2 [A ]
22
+ trait Invariant212 [A ]
23
+ trait Invariant213 [+ A ]
24
+ trait Invariant3 [+ A ]
25
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2022 Typelevel
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ package org .typelevel .scalaccompat .annotation
18
+
19
+ object CustomUncheckedVarianceHelper {
20
+ trait Invariant [A ]
21
+ trait Invariant2 [A ]
22
+ trait Invariant212 [+ A ]
23
+ trait Invariant213 [A ]
24
+ trait Invariant3 [+ A ]
25
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2022 Typelevel
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ package org .typelevel .scalaccompat .annotation
18
+
19
+ object CustomUncheckedVarianceHelper {
20
+ trait Invariant [A ]
21
+ trait Invariant2 [+ A ]
22
+ trait Invariant212 [+ A ]
23
+ trait Invariant213 [+ A ]
24
+ trait Invariant3 [A ]
25
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2022 Typelevel
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ package org .typelevel .scalaccompat .annotation
18
+
19
+ import CustomUncheckedVarianceHelper ._
20
+
21
+ object CustomUncheckedVarianceSuite {
22
+
23
+ class Covariant [+ A ] extends Invariant [A @ uncheckedVariance]
24
+ class Covariant2 [+ A ] extends Invariant2 [A @ uncheckedVariance2]
25
+ class Covariant212 [+ A ] extends Invariant212 [A @ uncheckedVariance212]
26
+ class Covariant213 [+ A ] extends Invariant213 [A @ uncheckedVariance213]
27
+ class Covariant3 [+ A ] extends Invariant3 [A @ uncheckedVariance3]
28
+
29
+ }
You can’t perform that action at this time.
0 commit comments