We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30a2333 commit 57b25f7Copy full SHA for 57b25f7
compiler/src/dotty/tools/dotc/transform/init/Semantic.scala
@@ -1042,7 +1042,7 @@ object Semantic {
1042
1043
/** Utility definition used for better error-reporting of argument errors */
1044
case class ArgInfo(value: Value, source: Tree) {
1045
- def promote: Contextual[List[Error]] = value.promote("May only use initialized value as arguments", source)
+ def promote: Contextual[List[Error]] = value.promote("Only initialized values may be used as arguments", source)
1046
}
1047
1048
/** Evaluate an expression with the given value for `this` in a given class `klass`
0 commit comments