Fix a typo in an error message
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// "Fix with 'asDynamic'" "true"
|
||||
// JS
|
||||
// ERROR: Declaration of such kind (extension function) cant be external
|
||||
// ERROR: Declaration of such kind (extension function) can't be external
|
||||
|
||||
external class B {
|
||||
@nativeGetter
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Fix with 'asDynamic'" "true"
|
||||
// JS
|
||||
// ERROR: Declaration of such kind (extension function) cant be external
|
||||
// ERROR: Declaration of such kind (extension function) can't be external
|
||||
|
||||
external class B {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// ACTION: Convert to block body
|
||||
// ACTION: Move to companion object
|
||||
// ACTION: Remove explicit type specification
|
||||
// ERROR: Declaration of such kind (extension function) cant be external
|
||||
// ERROR: Declaration of such kind (extension function) can't be external
|
||||
|
||||
external class A {
|
||||
fun A.<caret>bar(): Nothing = definedExternally
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ private val DIAGNOSTIC_FACTORY_TO_RENDERER by lazy {
|
||||
put(ErrorsJs.NOT_SUPPORTED, "Cannot translate (not supported yet): ''{0}''", RenderFirstLineOfElementText)
|
||||
put(ErrorsJs.JSCODE_NO_JAVASCRIPT_PRODUCED, "Argument must be non-empty JavaScript code")
|
||||
put(ErrorsJs.NESTED_EXTERNAL_DECLARATION, "Non top-level `external` declaration")
|
||||
put(ErrorsJs.WRONG_EXTERNAL_DECLARATION, "Declaration of such kind ({0}) can't be external", Renderers.STRING)
|
||||
put(ErrorsJs.WRONG_EXTERNAL_DECLARATION, "Declaration of such kind ({0}) can''t be external", Renderers.STRING)
|
||||
put(ErrorsJs.EXTENSION_FUNCTION_IN_EXTERNAL_DECLARATION, "Function types with receiver are prohibited in external declarations")
|
||||
put(ErrorsJs.INLINE_CLASS_IN_EXTERNAL_DECLARATION, "Using inline classes as parameter type or return type of external declarations is not supported")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user