Skip to content

Commit 57b25f7

Browse files
committed
Update wording of uninitialized value error to be grammatically correct
1 parent 30a2333 commit 57b25f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/init/Semantic.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ object Semantic {
10421042

10431043
/** Utility definition used for better error-reporting of argument errors */
10441044
case class ArgInfo(value: Value, source: Tree) {
1045-
def promote: Contextual[List[Error]] = value.promote("May only use initialized value as arguments", source)
1045+
def promote: Contextual[List[Error]] = value.promote("Only initialized values may be used as arguments", source)
10461046
}
10471047

10481048
/** Evaluate an expression with the given value for `this` in a given class `klass`

0 commit comments

Comments
 (0)