Skip to content

Commit 6e61c20

Browse files
committed
embedded: fix a typo in an error message
1 parent ec44600 commit 6e61c20

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/swift/AST/DiagnosticsSIL.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ ERROR(bad_attr_on_non_const_global,none,
376376
ERROR(global_must_be_compile_time_const,none,
377377
"global variable must be a compile-time constant", ())
378378
ERROR(non_final_generic_class_function,none,
379-
"classes cannot have non-final generic fuctions in embedded Swift", ())
379+
"classes cannot have non-final generic functions in embedded Swift", ())
380380
ERROR(cannot_specialize_witness_method,none,
381381
"an existential type cannot contain a generic method %0 in embedded Swift", (DeclName))
382382
ERROR(cannot_specialize_class,none,

test/embedded/classes-non-final-method-no-stdlib.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
// REQUIRES: swift_in_compiler
44

55
public class MyClass {
6-
func foo<T>(t: T) { } // expected-error {{classes cannot have non-final generic fuctions in embedded Swift}}
6+
func foo<T>(t: T) { } // expected-error {{classes cannot have non-final generic functions in embedded Swift}}
77
func bar() { }
88
}
99

1010
final class C2<Element> {
1111
// TODO: this shouldn't be a problem because the class is final
12-
init<T>(x: T) { } // expected-error {{classes cannot have non-final generic fuctions in embedded Swift}}
12+
init<T>(x: T) { } // expected-error {{classes cannot have non-final generic functions in embedded Swift}}
1313
}
1414

1515
struct S {}
@@ -19,7 +19,7 @@ func testit2() -> C2<S> {
1919
}
2020

2121
open class C3<X> {
22-
public func foo<T>(t: T) {} // expected-error {{classes cannot have non-final generic fuctions in embedded Swift}}
22+
public func foo<T>(t: T) {} // expected-error {{classes cannot have non-final generic functions in embedded Swift}}
2323
}
2424

2525
func testit3() -> C3<S> {

0 commit comments

Comments
 (0)