diff --git a/tests/functional/syntax/test_interfaces.py b/tests/functional/syntax/test_interfaces.py index b211253b66..15a90602fc 100644 --- a/tests/functional/syntax/test_interfaces.py +++ b/tests/functional/syntax/test_interfaces.py @@ -224,6 +224,36 @@ def foo() -> uint256: """, InterfaceViolation, ), + ( + # decorators must be strictly identical + """ +interface Self: + def protected_view_fn() -> String[100]: nonpayable + +implements: Self + +@external +@pure +def protected_view_fn() -> String[100]: + return empty(String[100]) + """, + InterfaceViolation, + ), + ( + # decorators must be strictly identical + """ +interface Self: + def protected_view_fn() -> String[100]: view + +implements: Self + +@external +@pure +def protected_view_fn() -> String[100]: + return empty(String[100]) + """, + InterfaceViolation, + ), ]