Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e66e8883
Commit
e66e8883
authored
Jun 30, 2015
by
Chinmay Garde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parameter contexts are non-final
parent
704d0174
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
param.dart
packages/cassowary/lib/param.dart
+2
-4
cassowary_test.dart
packages/cassowary/test/cassowary_test.dart
+6
-0
No files found.
packages/cassowary/lib/param.dart
View file @
e66e8883
...
...
@@ -6,11 +6,9 @@ part of cassowary;
class
Param
extends
_EquationMember
{
final
Variable
variable
;
final
dynamic
context
;
dynamic
context
;
Param
([
double
value
=
0.0
])
:
variable
=
new
Variable
(
value
),
context
=
null
{
Param
([
double
value
=
0.0
])
:
variable
=
new
Variable
(
value
)
{
variable
.
_owner
=
this
;
}
...
...
packages/cassowary/test/cassowary_test.dart
View file @
e66e8883
...
...
@@ -579,4 +579,10 @@ void main() {
expect
(
mid
.
value
,
50.0
);
expect
(
right
.
value
,
90.0
);
});
test
(
'param_context_non_final'
,
()
{
var
p
=
new
Param
.
withContext
(
"a"
);
p
.
context
=
"b"
;
expect
(
p
.
context
,
"b"
);
});
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment