这是一个错误还是 Groovy 的人故意设计的决定?
final String x = "a" x = "b"
你运行它,它会工作,没问题。不应该抛出运行时异常吗?用 注释班级@CompileStatic也无济于事。我期待在@CompileStatic使用时出现编译错误。
@CompileStatic
groovy
groovy ×1