diff --git a/docs/uts/class.md b/docs/uts/class.md index 9b5f272516ed9723350f8ecd4a7053b49b019401..270954845b5f96a659b6d39077fa7108cb96658a 100644 --- a/docs/uts/class.md +++ b/docs/uts/class.md @@ -492,3 +492,13 @@ class Test { 更多介绍参考 [文档](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/) +#### kotlin 平台匿名内部类写法 + +``` + const runnable = new (class implements Runnable { + override run() { + + } + }) +``` +