Kotlin 1.0.2 发布了,该版本提升了IDE中编译性能,提升开发Android应用时代码校验功能,支持Java 7/8、JS,IntelliJ IDEA 插件提升。以下是编译器相关的改进记录: KT-7437, KT-7971, KT-7051, KT-6125, KT-6186, KT-11649 Implement missing checks for protected visibility KT-11666 Report "Implicit nothing return type" on non-override member functions KT-4328, KT-11497, KT-10493, KT-10820, KT-11368 Report error if some classes were not found due to missing or conflicting dependencies KT-11280 Do not perform smart casts for values with custom equals compared with == KT-3856 Fix wrong "inner class inaccessible" diagnostic for extension to outer class KT-3896, KT-3883, KT-4986 do...while (true) is now considered an infinite loop KT-10445 Prohibit initialization of captured val in lambda or in local function KT-10042 Correctly handle local classes and anonymous objects in control flow analysis KT-11043 Prohibit complex expressions with class literals in annotation arguments KT-10992, KT-11007 Fix multiple problems related to smart casts KT-11490 Prohibit nested intersection types in return position KT-11411 Report "illegal noinline/crossinline" on parameter of subtype of function type KT-3083 Report "conflicting overloads" for functions with parameter of type parameter type KT-7265 Parse anonymous functions in blocks as expressions KT-8246 Handle break/continue for outer loop correctly in case of try/finally in between KT-11300 Report error on increment or augmented assignment when get is an operator but set is not Report warning about unused anonymous functions Improve callable reference type in some ambiguous cases Improve multiple diagnostic messages: KT-10761, KT-9760, KT-10949, KT-9887, KT-9550, KT-11239, KT-11819 Fix several compiler bugs leading to exceptions: KT-9820, KT-11597, KT-10983, KT-10972, KT-11287, KT-11492, KT-11765, KT-11869 完整改进记录,可以查看这里。 Kotlin 1.0.2 发布,基于 JVM 的编程语言下载地址