| 1 |
@function foo($arg2) { |
| 2 |
@return type-of($arg2); |
| 3 |
} |
| 4 |
|
| 5 |
@function foo_($arg2...) { |
| 6 |
@return type-of($arg2); |
| 7 |
} |
| 8 |
|
| 9 |
@function bar($arg1, $arg2) { |
| 10 |
@return type-of($arg1) + "::" + type-of($arg2); |
| 11 |
} |
| 12 |
|
| 13 |
@function bar_($arg1, $arg2...) { |
| 14 |
@return type-of($arg1) + "::" + type-of($arg2); |
| 15 |
} |
| 16 |
|
| 17 |
foo { |
| 18 |
foo: foo(one); |
| 19 |
foo: foo(one...); |
| 20 |
bar: bar(one, two); |
| 21 |
bar: bar(one, two...); |
| 22 |
foo: call('foo', one); |
| 23 |
foo: call('foo', one...); |
| 24 |
bar: call('bar', one, two); |
| 25 |
bar: call('bar', one, two...); |
| 26 |
} |
| 27 |
|
| 28 |
bar { |
| 29 |
foo: foo_(one); |
| 30 |
foo: foo_(one...); |
| 31 |
bar: bar_(one, two); |
| 32 |
bar: bar_(one, two...); |
| 33 |
foo: call('foo_', one); |
| 34 |
foo: call('foo_', one...); |
| 35 |
bar: call('bar_', one, two); |
| 36 |
bar: call('bar_', one, two...); |
| 37 |
} |