forked from ceedubs/ficus
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update scala 2.13.0 to 2.13.4 (#141)
* Extend scala.annotation.Annotation * Supply empty argument list explicitly * Update scala 2.13.0 to 2.13.4 * Update sbt-scoverage to 1.6.1 * Add test for issue #82
- Loading branch information
Showing
7 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ scala: | |
- 2.10.7 | ||
- 2.11.12 | ||
- 2.12.8 | ||
- 2.13.0 | ||
- 2.13.4 | ||
jdk: | ||
- oraclejdk8 | ||
- openjdk8 | ||
|
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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package macrocompat | ||
|
||
class bundle | ||
class bundle extends scala.annotation.Annotation |
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
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
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,23 @@ | ||
package net.ceedubs.ficus | ||
|
||
import net.ceedubs.ficus.Ficus._ | ||
import net.ceedubs.ficus.readers.ArbitraryTypeReader._ | ||
import com.typesafe.config._ | ||
import org.specs2.mutable.Specification | ||
|
||
class Issue82Spec extends Specification { | ||
"Ficus config" should { | ||
"not throw `java.lang.ClassCastException`" in { | ||
case class TestSettings(val `foo-bar`: Long, `foo`: String) | ||
val config = ConfigFactory.parseString("""{ foo-bar: 3, foo: "4" }""") | ||
config.as[TestSettings] must not(throwA[java.lang.ClassCastException]) | ||
} | ||
|
||
"""should not assign "foo-bar" to "foo"""" in { | ||
case class TestSettings(val `foo-bar`: String, `foo`: String) | ||
val config = ConfigFactory.parseString("""{ foo-bar: "foo-bar", foo: "foo" }""") | ||
val settings = config.as[TestSettings] | ||
(settings.`foo-bar` mustEqual "foo-bar") and (settings.`foo` mustEqual "foo") | ||
} | ||
} | ||
} |