File: function.hrx

package info (click to toggle)
sass-spec 3.6.3-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 22,980 kB
  • sloc: ruby: 1,620; perl: 428; sh: 96; makefile: 16
file content (20 lines) | stat: -rw-r--r-- 443 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<===> input.scss
@function foo($x, $y) { @return null }

a {
  b: foo(1 2 3...);
}
<===> error-dart-sass
Error: Only 2 arguments allowed, but 3 were passed.
  ,
4 |   b: foo(1 2 3...);
  |      ^^^^^^^^^^^^^
  '
  input.scss 4:6  foo()
  input.scss 4:6  root stylesheet

<===> output.css
<===> warning
WARNING: Function foo takes 2 arguments but 3 were passed.
        on line 4 of input.scss
This will be an error in future versions of Sass.