Skip to content

Commit

Permalink
Clarify class literals for primitive types (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
udalov committed Aug 10, 2016
1 parent add2b2d commit ce3fd7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proposals/bound-callable-references.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ class A {
}
```

Generated bytecode for `<expr>::class` should be similar to `<expr>.javaClass.kotlin`.
Generated bytecode for `<expr>::class` should be similar to `<expr>.javaClass.kotlin`. Note that for expressions of primitive types, the corresponding `KClass` instance at runtime should be backed by the primitive `Class` object, not the wrapper class. For example, `42::class.java` should return the `int` class, not `java.lang.Integer`.

An intrinsic for `<expr>::class.java`, meaning `<expr>.javaClass`, would be useful.

### Reflection
Expand Down

0 comments on commit ce3fd7f

Please sign in to comment.