mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
12 lines
519 B
Plaintext
12 lines
519 B
Plaintext
== foo.lkt ==
|
|
foo.lkt:12:15: error: return type is Array[Example], an array of bare AST nodes, which is forbidden in public API
|
|
12 | @exported fun array_of_nodes(): Array[Example] = node.singleton()
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
foo.lkt:14:15: error: return type is Array[Array[Example]], an array of arrays, which is forbidden in public API
|
|
14 | @exported fun array_of_arary(): Array[Array[Example]] =
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
lkt_compile: Done
|