Only try swizzles on vectors, numbers, and booleans.
diff --git a/Test/invalidSwizzle.vert b/Test/invalidSwizzle.vert
index 00b5625..799ff87 100644
--- a/Test/invalidSwizzle.vert
+++ b/Test/invalidSwizzle.vert
@@ -1,8 +1,10 @@
 #version 420
 
 void f();
+uniform sampler2D s;
 
 void main() {
+    vec2 v = s.rr; // Swizzles do not apply to samplers
     f().xx; // Scalar swizzle does not apply to void
     f().xy; // Vector swizzle does not apply either
 }
\ No newline at end of file