Originally created by @holzensp on GitHub (Nov 1, 2024).
Given
class Bird {
name: String = "DEFAULT"
colloquialName: String = name
}
evaluating
new Dynamic { name = "Pigeon" }.toTyped(Bird)
results in
new Bird {
name = "Pigeon"
colloquialName = "DEFAULT" // <- unexpected
}
The same holds for the toTyped definition on Map, so the following produces the same result:
new Dynamic { name = "Pigeon" }.toMap().toTyped(Bird)
Originally created by @holzensp on GitHub (Nov 1, 2024).
Given
```
class Bird {
name: String = "DEFAULT"
colloquialName: String = name
}
```
evaluating
```
new Dynamic { name = "Pigeon" }.toTyped(Bird)
```
results in
```
new Bird {
name = "Pigeon"
colloquialName = "DEFAULT" // <- unexpected
}
```
The same holds for the `toTyped` definition on `Map`, so the following produces the same result:
```
new Dynamic { name = "Pigeon" }.toMap().toTyped(Bird)
```
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 @holzensp on GitHub (Nov 1, 2024).
Given
evaluating
results in
The same holds for the
toTypeddefinition onMap, so the following produces the same result: