pasaran/yate — Issue #33: Результат apply нельзя использовать в атрибуте
Author: alexeyten
Created: 2012-03-01 05:04:08+00:00
State: open
Labels: bug

Пример

match / {

@class = apply . class
"Hello"

}

match / class {
"b-hello"
}

Запускаем

$ ./yate a.yate

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: ERROR: Cannot convert type from xml to scalar apply
at (18, 3) in /.../a.yate:
@class = apply . class
-----------------^
at [object Object].error (/.../yatelib.js:209:11)
at [object Object].cast (/.../yatelib.js:362:18)
at [object Object].setTypes (/.../yatelib.js:2601:16)
at /.../yatelib.js:3919:13
at [object Object].walkBefore (/.../yatelib.js:316:5)
at [object Object].walkBefore (/.../yatelib.js:785:18)
at [object Object].walkBefore (/.../yatelib.js:323:19)
at [object Object].walkBefore (/.../yatelib.js:323:19)
at [object Object].walkBefore (/.../yatelib.js:323:19)
at [object Object].walkBefore (/.../yatelib.js:785:18)