Originally created by @HT154 on GitHub (Nov 6, 2025).
open class A {
function foo() = "a"
}
class B extends A {
function foo() =
let (bar = "b")
super.foo() + bar
}
Result
–– Pkl Error ––
Cannot invoke a supermethod from here.
8 | super.foo() + bar
^^^^^^^^^^^
at test#B.foo.<function#1> (file://<dir>/test.pkl, line 8)
This works as expected:
class B extends A {
function foo() =
super.foo() + "b"
}
Originally created by @HT154 on GitHub (Nov 6, 2025).
```pkl
open class A {
function foo() = "a"
}
class B extends A {
function foo() =
let (bar = "b")
super.foo() + bar
}
```
Result
```
–– Pkl Error ––
Cannot invoke a supermethod from here.
8 | super.foo() + bar
^^^^^^^^^^^
at test#B.foo.<function#1> (file://<dir>/test.pkl, line 8)
```
This works as expected:
```pkl
class B extends A {
function foo() =
super.foo() + "b"
}
```
adam
added the bug label 2025-12-30 01:23:50 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @HT154 on GitHub (Nov 6, 2025).
Result
This works as expected: