/third_party/typescript/tests/baselines/reference/ |
D | inferenceShouldFailOnEvolvingArrays.js | 4 function logLength<T extends string, U extends string>(arg: { [K in U]: T }[U]): T { 8 logLength(42); // error 10 z = logLength(42); // no error; T is inferred as `any` 18 zz.push(logLength(42)); // no error; T is inferred as `any` 25 function logLength(arg) { function 29 logLength(42); // error 31 z = logLength(42); // no error; T is inferred as `any` 38 zz.push(logLength(42)); // no error; T is inferred as `any`
|
D | inferenceShouldFailOnEvolvingArrays.types | 4 function logLength<T extends string, U extends string>(arg: { [K in U]: T }[U]): T { 5 >logLength : <T extends string, U extends string>(arg: { [K in U]: T; }[U]) => T 20 logLength(42); // error 21 >logLength(42) : string 22 >logLength : <T extends string, U extends string>(arg: { [K in U]: T; }[U]) => T 28 z = logLength(42); // no error; T is inferred as `any` 29 >z = logLength(42) : string 31 >logLength(42) : string 32 >logLength : <T extends string, U extends string>(arg: { [K in U]: T; }[U]) => T 63 zz.push(logLength(42)); // no error; T is inferred as `any` [all …]
|
D | inferenceShouldFailOnEvolvingArrays.symbols | 4 function logLength<T extends string, U extends string>(arg: { [K in U]: T }[U]): T { 5 >logLength : Symbol(logLength, Decl(inferenceShouldFailOnEvolvingArrays.ts, 0, 0)) 26 logLength(42); // error 27 >logLength : Symbol(logLength, Decl(inferenceShouldFailOnEvolvingArrays.ts, 0, 0)) 32 z = logLength(42); // no error; T is inferred as `any` 34 >logLength : Symbol(logLength, Decl(inferenceShouldFailOnEvolvingArrays.ts, 0, 0)) 64 zz.push(logLength(42)); // no error; T is inferred as `any` 68 >logLength : Symbol(logLength, Decl(inferenceShouldFailOnEvolvingArrays.ts, 0, 0))
|
D | inferenceShouldFailOnEvolvingArrays.errors.txt | 11 function logLength<T extends string, U extends string>(arg: { [K in U]: T }[U]): T { 15 logLength(42); // error 19 z = logLength(42); // no error; T is inferred as `any` 31 zz.push(logLength(42)); // no error; T is inferred as `any`
|
/third_party/flutter/skia/tools/gpu/atlastext/ |
D | GLTestAtlasTextRenderer.cpp | 157 GrGLint logLength; in GLTestAtlasTextRenderer() local 158 callgl(GetShaderiv, vs, GR_GL_INFO_LOG_LENGTH, &logLength); in GLTestAtlasTextRenderer() 159 std::unique_ptr<GrGLchar[]> log(new GrGLchar[logLength + 1]); in GLTestAtlasTextRenderer() 160 log[logLength] = '\0'; in GLTestAtlasTextRenderer() 161 callgl(GetShaderInfoLog, vs, logLength, &logLength, log.get()); in GLTestAtlasTextRenderer() 202 GrGLint logLength; in GLTestAtlasTextRenderer() local 203 callgl(GetShaderiv, fs, GR_GL_INFO_LOG_LENGTH, &logLength); in GLTestAtlasTextRenderer() 204 std::unique_ptr<GrGLchar[]> log(new GrGLchar[logLength + 1]); in GLTestAtlasTextRenderer() 205 log[logLength] = '\0'; in GLTestAtlasTextRenderer() 206 callgl(GetShaderInfoLog, fs, logLength, &logLength, log.get()); in GLTestAtlasTextRenderer() [all …]
|
/third_party/typescript/tests/cases/compiler/ |
D | inferenceShouldFailOnEvolvingArrays.ts | 4 function logLength<T extends string, U extends string>(arg: { [K in U]: T }[U]): T { function 8 logLength(42); // error 10 z = logLength(42); // no error; T is inferred as `any` 18 zz.push(logLength(42)); // no error; T is inferred as `any`
|
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
D | glcSeparableProgramsTransformFeedbackTests.cpp | 243 GLint logLength; in iterate() local 244 gl.getProgramPipelineiv(pipelineId, GL_INFO_LOG_LENGTH, &logLength); in iterate() 245 if (logLength) in iterate() 247 std::vector<GLchar> logBuffer(logLength + 1); in iterate() 248 gl.getProgramPipelineInfoLog(pipelineId, logLength + 1, NULL, &logBuffer[0]); in iterate()
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fShaderStateQueryTests.cpp | 570 StateQueryMemoryWriteGuard<GLint> logLength; in test() local 571 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &logLength); in test() 572 if (!logLength.verifyValidity(m_testCtx)) in test() 577 if (logLength == 0) in test() 591 if (logLength <= DE_LENGTH_OF_ARRAY(buffer)) in test() 593 if (written != logLength-1) in test() 595 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected length " << logLength-1 << "; got " … in test() 603 if (logLength < DE_LENGTH_OF_ARRAY(buffer)) in test() 997 StateQueryMemoryWriteGuard<GLint> logLength; in test() local 998 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &logLength); in test() [all …]
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fShaderStateQueryTests.cpp | 734 StateQueryMemoryWriteGuard<GLint> logLength; in test() local 735 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &logLength); in test() 736 if (!logLength.verifyValidity(m_testCtx)) in test() 741 if (logLength == 0) in test() 755 if (logLength <= DE_LENGTH_OF_ARRAY(buffer)) in test() 757 if (written != logLength-1) in test() 759 …m_testCtx.getLog() << TestLog::Message << "// ERROR: Expected length " << logLength-1 << "; got " … in test() 767 if (logLength < DE_LENGTH_OF_ARRAY(buffer)) in test() 1247 StateQueryMemoryWriteGuard<GLint> logLength; in test() local 1248 glGetProgramiv(program, GL_INFO_LOG_LENGTH, &logLength); in test() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/ |
D | Program.cpp | 2605 size_t logLength = strlen(infoLog); in appendToInfoLog() local 2606 char *newLog = new char[logLength + infoLength + 2]; in appendToInfoLog() 2608 strcpy(newLog + logLength, info); in appendToInfoLog() 2609 strcpy(newLog + logLength + infoLength, "\n"); in appendToInfoLog()
|