diff options
author | Peter <peter.hall@algomi.com> | 2016-02-28 00:33:11 +0000 |
---|---|---|
committer | Peter <peter.hall@algomi.com> | 2016-03-03 20:21:48 +0000 |
commit | 3e78b54d46fba83e2233e7087c196ee5097c320e (patch) | |
tree | 77aeae27afd024abb907a7dff70bf15b08cbdac9 /components/script/dom/testbinding.rs | |
parent | 875f1e92ccafebc8ddebc722f430e5037007b9dc (diff) | |
download | servo-3e78b54d46fba83e2233e7087c196ee5097c320e.tar.gz servo-3e78b54d46fba83e2233e7087c196ee5097c320e.zip |
Fixed compile error in generated code, when webidl constructors have same number of args
Edited test webidl to show issue, and fix
Diffstat (limited to 'components/script/dom/testbinding.rs')
-rw-r--r-- | components/script/dom/testbinding.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/components/script/dom/testbinding.rs b/components/script/dom/testbinding.rs index 1b7b838f831..ae63c1f6e20 100644 --- a/components/script/dom/testbinding.rs +++ b/components/script/dom/testbinding.rs @@ -51,6 +51,16 @@ impl TestBinding { pub fn Constructor(global: GlobalRef) -> Fallible<Root<TestBinding>> { Ok(TestBinding::new(global)) } + + #[allow(unused_variables)] + pub fn Constructor_(global: GlobalRef, nums: Vec<f64>) -> Fallible<Root<TestBinding>> { + Ok(TestBinding::new(global)) + } + + #[allow(unused_variables)] + pub fn Constructor__(global: GlobalRef, num: f64) -> Fallible<Root<TestBinding>> { + Ok(TestBinding::new(global)) + } } impl TestBindingMethods for TestBinding { |