Skip to content

Commit

Permalink
Add specs for issue 2569
Browse files Browse the repository at this point in the history
This PR add specs for sass/libsass#2569
  • Loading branch information
xzyfer committed Mar 5, 2018
1 parent 34a6d6b commit 1c744e0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/libsass-closed-issues/issue_2569/error
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Error: Functions can only contain variable declarations and control directives.
on line 5 of /sass/spec/libsass-issues/issue_2569/input.scss
Use --trace for backtrace.
4 changes: 4 additions & 0 deletions spec/libsass-closed-issues/issue_2569/error-dart-sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Error: expected "@".
opacity: 1;
^
test.scss 5:5 root stylesheet
Empty file.
11 changes: 11 additions & 0 deletions spec/libsass-closed-issues/issue_2569/input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@function test() {
@if (false) {
@return 0;
} @else {
opacity: 1;
}
}

.my-module {
opacity: test();
}
1 change: 1 addition & 0 deletions spec/libsass-closed-issues/issue_2569/status
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
65

0 comments on commit 1c744e0

Please sign in to comment.