Skip to content

Commit c4b85d4

Browse files
authored
Merge pull request #312 from lrytz/nowarn
Add scala.annotation.nowarn for cross-compiling
2 parents 83835e4 + 9766841 commit c4b85d4

File tree

1 file changed

+22
-0
lines changed
  • compat/src/main/scala-2.11_2.12/scala/annotation

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Scala (https://www.scala-lang.org)
3+
*
4+
* Copyright EPFL and Lightbend, Inc.
5+
*
6+
* Licensed under Apache License 2.0
7+
* (http://www.apache.org/licenses/LICENSE-2.0).
8+
*
9+
* See the NOTICE file distributed with this work for
10+
* additional information regarding copyright ownership.
11+
*/
12+
13+
package scala.annotation
14+
15+
/** An annotation for local warning suppression added in 2.13.2. Note that this annotation has
16+
* no functionality when used in Scala 2.11 or 2.12, but allows cross-compiling code that uses
17+
* `@nowarn`.
18+
*
19+
* For documentation on how to use the annotation in 2.13 see
20+
* https://www.scala-lang.org/api/2.13.2/scala/nowarn.html
21+
*/
22+
class nowarn(value: String = "") extends StaticAnnotation

0 commit comments

Comments
 (0)