| 71 | } |
| 72 | |
| 73 | fun asDouble(any: Any?): Double { |
| 74 | if (any is Number) { |
| 75 | return any.toDouble() |
| 76 | } else if (any is String) { |
| 77 | return any.toDouble() |
| 78 | } |
| 79 | |
| 80 | throw AttributeError("value $any is not a double") |
| 81 | } |
| 82 | |
| 83 | private class WrappedJavaInstance(val instance: Any) { |
| 84 |
no test coverage detected