diff options
author | cparsons <cparsons@google.com> | 2018-07-13 15:45:06 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-07-13 15:46:30 -0700 |
commit | a567777889fd0abc6c31818054ed18eaa918e1fe (patch) | |
tree | 6f7164579faa2b520f19469ec97aea22f167c757 /src/main/java/com/google/devtools/build/lib/skylarkinterface | |
parent | 1771054491bcaa8bc5f2dacdb66381519e4ae29a (diff) |
Test suite to verify contracts of @SkylarkCallable and @SkylarkModule which are difficult or impossible to verify by annotation processor.
RELNOTES: None.
PiperOrigin-RevId: 204540521
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skylarkinterface')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skylarkinterface/SkylarkInterfaceUtils.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skylarkinterface/SkylarkInterfaceUtils.java b/src/main/java/com/google/devtools/build/lib/skylarkinterface/SkylarkInterfaceUtils.java index a4279e4b81..b4647cff77 100644 --- a/src/main/java/com/google/devtools/build/lib/skylarkinterface/SkylarkInterfaceUtils.java +++ b/src/main/java/com/google/devtools/build/lib/skylarkinterface/SkylarkInterfaceUtils.java @@ -66,7 +66,6 @@ public class SkylarkInterfaceUtils { // B or if A is of type C. It's both! The way to resolve this is usually to have A be its own // type (annotated with @SkylarkModule), and thus have the explicit type of A be semantically // "B and C". - // TODO(cparsons): Verify in a test, and thus not rely solely on a runtime check. throw new IllegalArgumentException(String.format( "Expected one of %s and %s to be a subclass of the other", xClass, yClass)); |