This is an automated email from the ASF dual-hosted git repository.

emilles pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 1b23d9a7ac4f1c8cfb642972af20740729cef46e
Author: Eric Milles <[email protected]>
AuthorDate: Sun Nov 30 14:18:28 2025 -0600

    GROOVY-3299: add test case
---
 .../lang/ExpandoMetaClassCreationHandleTest.groovy       | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git 
a/src/test/groovy/groovy/lang/ExpandoMetaClassCreationHandleTest.groovy 
b/src/test/groovy/groovy/lang/ExpandoMetaClassCreationHandleTest.groovy
index 1f6085cdf9..3b40471b3b 100644
--- a/src/test/groovy/groovy/lang/ExpandoMetaClassCreationHandleTest.groovy
+++ b/src/test/groovy/groovy/lang/ExpandoMetaClassCreationHandleTest.groovy
@@ -109,6 +109,22 @@ final class ExpandoMetaClassCreationHandleTest {
         assert new Tester().helloWorld() == 'goodbye!'
     }
 
+    // GROOVY-3299
+    @Test
+    void testInheritFromSuperInterface2() {
+        reset(CharSequence, String)
+
+        expand(CharSequence).dummy = { -> 'cat' }
+
+        assert 'testOne'.dummy() == 'cat'
+
+        reset(String) // TODO: don't require this
+
+        expand(CharSequence).dummy = { -> 'dog' }
+
+        assert 'testTwo'.dummy() == 'dog'
+    }
+
     @Test
     void testOverrideGetAndPutAtViaInterface() {
         reset(Bar, Foo, Tester)

Reply via email to