mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Remove duplicate clause caught in rereading
This commit is contained in:
parent
44876dce9e
commit
d7ad1b5d55
1 changed files with 2 additions and 4 deletions
|
@ -119,10 +119,8 @@ parameters, it doesn't make sense to warn on their instantiation (as illustrated
|
||||||
by the example of actually applying `f` to some particular data in the
|
by the example of actually applying `f` to some particular data in the
|
||||||
definition of `rank2`), but it's still just as problematic if we were to accept
|
definition of `rank2`), but it's still just as problematic if we were to accept
|
||||||
instantiated functions at polymorphic types. Thus, it's important that we
|
instantiated functions at polymorphic types. Thus, it's important that we
|
||||||
actually ensure that we only instantiate in covariant contexts, but it's still
|
actually ensure that we only instantiate in covariant contexts. So, we must
|
||||||
just as problematic if we were to accept instantiated functions at polymorphic
|
ensure that subtyping only instantiates in covariant contexts.
|
||||||
types. So, we must ensure that subtyping only instantiates in covariant
|
|
||||||
contexts.
|
|
||||||
|
|
||||||
It may also be helpful to consider an example of rank-1 polymorphism to
|
It may also be helpful to consider an example of rank-1 polymorphism to
|
||||||
understand the full scope of the behavior. So, we can look at what happens if we
|
understand the full scope of the behavior. So, we can look at what happens if we
|
||||||
|
|
Loading…
Add table
Reference in a new issue