mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-04-03 18:10:56 +01:00
fix spelling :(
This commit is contained in:
parent
1fee95b001
commit
458dcb645f
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ The RFC introduces a feature to annotate polymorphic function types to express t
|
|||
|
||||
## Motivation
|
||||
|
||||
The purpose of this feature is to dvelop syntax to prevent polymorphic types from widening into (e.g., number | string) when a function is implicitly instantiated with different argument types. E.g., `test(1, "a")`. In the following code, Luau's current solver infers `T` to be of a union type:
|
||||
The purpose of this feature is to develop syntax to prevent polymorphic types from widening into (e.g., number | string) when a function is implicitly instantiated with different argument types. E.g., `test(1, "a")`. In the following code, Luau's current solver infers `T` to be of a union type:
|
||||
|
||||
```luau
|
||||
function test<T>(a: T, b: T): T
|
||||
|
|
Loading…
Add table
Reference in a new issue