/
servlamo
/
cue
Обзор
Документация
Войти
/
servlamo
/
cue
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
internal/core/runtime/testdata/errors.txtar
111 строк
2 KB
Roger Peppe
internal/core/runtime: external attributes can use any concrete field name
01 ноя 2024, 11:21
01 ноя 2024, 11:21
0f6c51b
Код
Авторство
О чём код?
-- cue.mod/modules.cue -- -- invalid_file_attr.cue -- @extern("test" foo) package foo -- invalid_field_attr.cue -- @extern("test") // Foo package foo Fn1: _ @test("file1.xx" abi sig) -- empty_extern.cue -- @extern() package foo Fn2: _ @test("file1.xx" abi sig) -- unknown_interpreter.cue -- @extern("wazem") package foo Fn3: _ @wazem("file1.xx" abi sig) -- double_extern_a.cue -- @extern("test") @extern("test") package foo Fn4a: _ @test("file1.xx") -- double_extern_b.cue -- @extern("test") @extern("test") @extern("test") package foo Fn4b: _ @test("file1.xx") -- package_attr.cue -- @extern("test") package foo @test("file1.xx") Fn5: _ -- duplicate.cue -- @extern("test") package foo Fn6: _ @test("file1.xx",sig=func(int)int) @test("file1.xx", sig=func(int)bool) Fn7: { @test("file1.xx",sig=func(int)int) _ } @test("file1.xx", sig=func(int)bool) -- non_ident.cue -- @extern("test") package foo ("something"): _ @test("file1.xx",sig=func(int)int) [string]: _ @test("file1.xx",sig=func(int)int) -- late_extern.cue -- package foo @extern("test") Foo: _ @test(file1.xx, abi=c, sig="func(int)int") -- out/extern -- only one file-level extern attribute allowed per file: ./double_extern_a.cue:2:1 only one file-level extern attribute allowed per file: ./double_extern_b.cue:2:1 duplicate @test attributes: ./duplicate.cue:6:43 duplicate @test attributes: ./duplicate.cue:11:3 interpreter name must be non-empty: ./empty_extern.cue:1:1 no interpreter defined for "\"test\" foo": ./invalid_file_attr.cue:1:1 extern attribute must appear before package clause: ./late_extern.cue:3:1 external attribute has non-concrete label ("something"): ./non_ident.cue:6:18 external attribute has non-concrete label [string]: ./non_ident.cue:8:13 @test attribute not associated with field: ./package_attr.cue:5:1 no interpreter defined for "wazem": ./unknown_interpreter.cue:1:1