mirror of
https://github.com/apple/pkl.git
synced 2026-09-13 13:21:47 +02:00
Use ChoiceFormat for better plurals in error messages (#1848)
This commit is contained in:
+2
-2
@@ -1,2 +1,2 @@
|
||||
f = (a1, a2, a3) -> a1
|
||||
res = f.applyToList(List(1, 2, 3, 4, 5, 6))
|
||||
f = (a1, a2) -> a1
|
||||
res = f.applyToList(List(1, 2, 3, 4, 5, 6))
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
–– Pkl Error ––
|
||||
Expected 3 function arguments but got 6.
|
||||
Expected 2 function arguments but got 6.
|
||||
|
||||
x | f = (a1, a2, a3) -> a1
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
x | f = (a1, a2) -> a1
|
||||
^^^^^^^^^^^^^^
|
||||
at wrongArgumentListLength#f.<function#1> (file:///$snippetsDir/input/lambdas/wrongArgumentListLength.pkl)
|
||||
|
||||
x | res = f.applyToList(List(1, 2, 3, 4, 5, 6))
|
||||
|
||||
Reference in New Issue
Block a user