Type parameters are placed before the name of the function
This commit is contained in:
@@ -7,8 +7,7 @@ Goal: support run-time access to types passed to functions, as if they were reif
|
|||||||
A type parameter of a function can be marked as `reified`:
|
A type parameter of a function can be marked as `reified`:
|
||||||
|
|
||||||
``` kotlin
|
``` kotlin
|
||||||
|
inline fun <reified T> foo() {}
|
||||||
inline fun foo<reified T>() {}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Semantics, Checks and Restrictions
|
## Semantics, Checks and Restrictions
|
||||||
|
|||||||
Reference in New Issue
Block a user