Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

enable -Xfatal-warnings #38

Merged
merged 4 commits into from
Jul 28, 2015
Merged

Conversation

SethTisue
Copy link
Member

No description provided.

namely "possible missing interpolator: detected interpolated identifier"
we are finally free to do this, now that `-deprecation:false` exists
despite the stern warnings warning in build.sbt, we have no such
warnings currently
@SethTisue
Copy link
Member Author

review by @adriaanm, review and/or umlaut jokes by @som-snytt

@@ -765,7 +765,7 @@ class SuiteRunner(

def banner = {
val baseDir = fileManager.compilerUnderTest.parent.toString
def relativize(path: String) = path.replace(baseDir, "$baseDir").replace(PathSettings.srcDir.toString, "$sourceDir")
def relativize(path: String) = path.replace(baseDir, s"$$baseDir").replace(PathSettings.srcDir.toString, "$sourceDir")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even without the PR for the constant folding f-interpolator, f"$$x" is a constant string.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant: as a style matter, I prefer f"constant" because s"constant" involves a string context.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I understood and thought about changing it, but decided I like it a little better this way, just because s is so much more familiar than f. (no strong feeling either way though)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's time to apply my f"the familiar interpolator" sticker to the lid of my lap top.

@adriaanm
Copy link
Contributor

LGTM! I pondered @som-snytt's comment for a while, but afraid the umlaut flew over my head.

SethTisue added a commit that referenced this pull request Jul 28, 2015
@SethTisue SethTisue merged commit bb1c1f4 into scala:master Jul 28, 2015
@SethTisue
Copy link
Member Author

I had an incongruous umlaut once, but I saw a doctor and got rid of it.

@SethTisue SethTisue deleted the enable-fatal-warnings branch July 28, 2015 17:53
lrytz pushed a commit to lrytz/scala-partest that referenced this pull request May 9, 2018
lrytz pushed a commit to lrytz/scala-partest that referenced this pull request May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants