Bug 9005 - scope of model import prefix should be module/submodule
[yangtools.git] / yang / yang-parser-impl / src / test / resources / bugs / bug9005 / sub-foo@2017-07-07.yang
diff --git a/yang/yang-parser-impl/src/test/resources/bugs/bug9005/sub-foo@2017-07-07.yang b/yang/yang-parser-impl/src/test/resources/bugs/bug9005/sub-foo@2017-07-07.yang
new file mode 100644 (file)
index 0000000..5214745
--- /dev/null
@@ -0,0 +1,9 @@
+submodule sub-foo {
+    belongs-to foo {
+        prefix foo;
+    }
+
+    import bar-1 { prefix bar; }
+
+    revision 2017-07-07;
+}