Skip to content

Commit 739338e

Browse files
Add test
1 parent 84dcef3 commit 739338e

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package org.jooq.impl;
2+
3+
import org.jooq.Configuration;
4+
5+
abstract class AbstractQueryPart {
6+
Configuration configuration() {
7+
return null;
8+
}
9+
}

tests/pos/i18654/AbstractRoutine.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package org.jooq.impl;
2+
3+
import org.jooq.Configuration;
4+
import org.jooq.Attachable;
5+
6+
public abstract class AbstractRoutine<T> extends AbstractQueryPart implements Attachable {
7+
@Override
8+
public final Configuration configuration() {
9+
return null;
10+
}
11+
}

tests/pos/i18654/Attachable.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package org.jooq;
2+
3+
public interface Attachable {
4+
Configuration configuration();
5+
}

tests/pos/i18654/Configuration.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package org.jooq;
2+
3+
public interface Configuration {}

tests/pos/i18654/MyRoutineScala.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.example
2+
3+
import org.jooq.impl.AbstractRoutine
4+
5+
// Works in Scala 2.12 and 2.13 but is broken in Scala 3
6+
class MyRoutineScala extends AbstractRoutine[String] {}

0 commit comments

Comments
 (0)