Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/bugPublic

Reporter counts warnings when-nowarn is enabled #12664

Closed
scala/scala
#10750
Assignees
som-snytt
Milestone
@lrytz

Description

@lrytz

Because-nowarn is "just" setting-Xmaxwarns 0, warnings are not displayed but still counted in the reporter.

Maybe not a bug? Thoughts welcome. It's an easy fix inFilteringReporter.

Welcome toScala2.13.10 (OpenJDK64-BitServerVM,Java17.0.1).Type in expressionsfor evaluation.Ortry:help.scala>importscala.tools.nsc._|importscala.tools.nsc.interpreter._|importscala.tools.nsc.interpreter.shell._|vals=newSettings()| s.nowarn.value=true|valr=newReplReporterImpl(s) {overridedefreset():Unit= () }// interpreter calls `reset` after each line|vali=newIMain(s, r)| i.interpret("val x: Unit = 1")| r.warningCountvalx:Unit= ()importscala.tools.nsc._importscala.tools.nsc.interpreter._importscala.tools.nsc.interpreter.shell._vals: scala.tools.nsc.Settings=Settings {-encoding=UTF-8-nowarn=true-Xmaxwarns=0}// mutated s.nowarn.valuevalr: scala.tools.nsc.interpreter.shell.ReplReporterImpl= $anon$1@594c66c3vali: scala.tools.nsc.interpreter.IMain= scala.tools.nsc.interpreter.IMain@64e657b0valres0:Int=1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp