问题标签 [kotlin-java-interop]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
51 浏览

kotlin - 使用 DefaultValue 委派映射的 Kotlin 问题 - 语言错误?

在下面的代码中,其中MyMap简单地实现Map by了委托impl

为什么我在第二个 println 上收到以下错误?

更新:编译器和运行时版本输出是: