-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #312 from lrytz/nowarn
Add scala.annotation.nowarn for cross-compiling
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
compat/src/main/scala-2.11_2.12/scala/annotation/nowarn.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Scala (https://www.scala-lang.org) | ||
* | ||
* Copyright EPFL and Lightbend, Inc. | ||
* | ||
* Licensed under Apache License 2.0 | ||
* (http://www.apache.org/licenses/LICENSE-2.0). | ||
* | ||
* See the NOTICE file distributed with this work for | ||
* additional information regarding copyright ownership. | ||
*/ | ||
|
||
package scala.annotation | ||
|
||
/** An annotation for local warning suppression added in 2.13.2. Note that this annotation has | ||
* no functionality when used in Scala 2.11 or 2.12, but allows cross-compiling code that uses | ||
* `@nowarn`. | ||
* | ||
* For documentation on how to use the annotation in 2.13 see | ||
* https://www.scala-lang.org/api/2.13.2/scala/nowarn.html | ||
*/ | ||
class nowarn(value: String = "") extends StaticAnnotation |